function allReadyList() {
    // var url = '/SUP/CustomIntegrate/CustomIntegrateEdit?otype=add&hastitle=1&treeorgid=400200819000002&treeprojid=&customBusCode=EFORM0000000427&Authorization=null&AppTitle=%E5%85%9A%E8%B4%B9%E7%BC%B4%E7%BA%B3%E8%AE%A1%E7%AE%97%E5%99%A8';
    // location.href = url;

    Toolbar.insert(4, { itemId: "bz", text: "帮助", width: this.itemWidth, iconCls: "icon-Copy" ,handler:function(){
        window.open('http://www.cntyjt.com/wd/03.pdf');

    }});
}

function allReadyEdit() {
    //curToolbar.setVisible(false)
    var btn = curForm.getItem('b_1');
    btn.el.dom.style.left = '12px';
    btn.el.dom.style.top = '8px';
    btn.on('click',function () {
        NG.getItem('jj').fireEvent('change','');
        NG.alert('计算完成');
    });

    curForm.on('dataready', function () {
        NG.setValue('t_1', '&#12288;说明：</br>&#12288;&#12288;&#12288;&#12288;' +
            '1、党费交纳基数=基本工资+岗位工资+工龄津贴+奖金-个人扣缴的养老保险-医疗保险-个人所得税-企业年金-失业保险</br>&#12288;&#12288;&#12288;&#12288;' +
            '2、党费交纳系数：基数在3000元以下（含3000元）者，交纳系数为0．5%；3000元以上至5000元（含5000元）者，交纳系数为1%；5000元以上至10000元（含10000元）者，交纳系数为1．5%；10000元以上者，交纳系数为2%。</br>&#12288;&#12288;&#12288;&#12288;' +
            '3、个人应缴党费=党费交纳基数×党费交纳系数');
    });

    NG.bindMasterExp('dfjnjs', "{jcgz}+({gwgz}-220)*0.85+{gljt}+{jj}*0.54-{grkjdylbx}-{ylbx}-{grsds}-{qynj}-{sybx}");
    NG.getItem('dfjnjs').on('change', function () {
        var dfjnjs = NG.getValue('dfjnjs');
        var gryjndf = 0;
        if (dfjnjs <= 3000) {
            gryjndf = dfjnjs * 0.005;
        } else {
            if (dfjnjs <= 5000) {
                gryjndf = dfjnjs * 0.01;
            } else {
                if (dfjnjs <= 10000) {
                    gryjndf = dfjnjs * 0.015;
                } else {
                    gryjndf = dfjnjs * 0.02
                }
            }
        }
        NG.setValue('gryjndf', gryjndf);
    });
}
